#pragma once

#if defined(__CUDACC__)
#define HOST_DEVICE_INLINE __host__ __device__ __forceinline__
#define DEVICE_INLINE __device__ __forceinline__
#else
#define HOST_DEVICE_INLINE inline
#define DEVICE_INLINE
#endif

#if defined(__CUDACC__)
#define ALIGN_AS(n) __align__(n)
#else
#define ALIGN_AS(n) __attribute__((aligned(n)))
#endif